package com.ruibang.glass.job.feign;


import com.ruibang.glass.job.entity.TimeInterval;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("glass-quality")
@Component
public interface QualityApi {

    @PostMapping("/api/judgment/defect/defectHourTask")
    @ApiOperation(value = "缺陷小时任务", notes = "缺陷小时任务")
    ResultBody defectHourTask(@RequestBody TimeInterval timeInterval);
}
